#ifndef __JUMPJUMP_MAINUILAYER_H__
#define __JUMPJUMP_MAINUILAYER_H__

#include <vector>


#include "SimpleAudioEngine.h"
#include "Common/Exd/EXData.h"


class MainUILayer : public cocos2d::CCLayer
{
public:
    // Here's a difference. Method 'init' in cocos2d-x returns bool, instead of returning 'id' in cocos2d-iphone
    bool init(int forbidColor, int forbidShape, int forbidNum, int hp);  

    // a selector callback
    void menuCloseCallback(CCObject* pSender);

    // implement the "static node()" method manually

	static MainUILayer* create(int forbidColor, int forbidShape, int forbidNum, int hp) 
	{ 
		MainUILayer *pRet = new MainUILayer(); 
		if (pRet && pRet->init(forbidColor, forbidShape, forbidNum, hp)) { 
			pRet->autorelease(); 
			return pRet; 
		} else { 
			delete pRet; 
			pRet = NULL; 
			return NULL; 
		} 
	}


	void	ChangeHp(int hp);
	void	ChangePoint(int point);

	void	ShowGameOverUI();


    void OKAndBack(cocos2d::CCObject* pSender);
	void PauseGame(cocos2d::CCObject* pSender);
	void ResumeGame(cocos2d::CCObject* pSender);


public:
	cocos2d::CCTexture2D*			m_pSpriteTexture;    

	cocos2d::extension::UILayer*	uiLayer;

	int								forbidColor;
	int								forbidShape;
	int								forbidNum;

	int								hp;

};

#endif  // __HELLOWORLD_SCENE_H__